﻿@{
    ViewBag.Title = "用户登录";
}
@{
    Html.RenderPartial("~/views/partial/login.cshtml", new ViewDataDictionary()
    {
        {"ReturnUrl",ViewBag.ReturnUrl }
    });
}
@section scripts{
    @Scripts.Render("~/bundles/login")
    <script>
        $(document).ready(function (e) {
            hxAccount.login.init(true);
            if (window.history && window.history.pushState) {
                $(window).on('popstate', function () {
                    window.history.pushState('forward', null, '#');
                    window.history.forward(1);
                    location.replace(document.referrer);//刷新
                });
                window.history.pushState('forward', null, '#');
                window.history.forward(1);
            }
        });
    </script>
}
